package com.southern.gateway.base;/*
 *
 *@Author:tangchao
 *@Description:
 *@Date:2022/1/7
 * */

import java.util.ResourceBundle;

public class ErrorMessage {
    private static final ResourceBundle message = ResourceBundle.getBundle("il8n/exception_message");

    public ErrorMessage() {
    }

    public static String getMessage(String key){
        String msg = null;
        try {
            msg = message.getString(key);
        } catch (Exception e) {
           msg = key + "not found!";
        }
        return msg;
    }
}
